package cn.vihub.client.user;

import cn.vihub.pojo.ShopUser;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 秋晚
 * @Date: 2025/7/21 19:11
 * @Description:
 **/
@FeignClient(name = "shop-server-user",path = "/shop-user/user")
public interface UserFeignClient {

    @GetMapping("getUserByUsername/{username}")
    ShopUser getUserByUsername(@PathVariable(name = "username") String username);
}
